def start(args):
    import os
    
    path, file = os.path.split(__file__)
    
    js_file = os.path.join(path, 'main.js')
    rs_file = os.path.join(path, 'strings.json')
    
    loader = args['loader']
    rpc = loader.get_component('rpc')
    router = loader.get_component('server.WSGI_Server').get_router()
    
    wrap = loader.get_component('utils.wrap')
    
    @router.route('/admin/main')
    def main(header, request, response_headers):
        f = open(rs_file, 'r')
        rs = f.read()
        f.close()
        f = open(js_file, 'r')
        ret = wrap(f.read(), rs)
        f.close()
        return ret
    
def stop(args):
    pass
